﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZQNB.AppLib.Cloud.Models
{
    /// <summary>
    /// 云中心账号修改密码模型
    /// </summary>
    public class CloudAccountChangePassword
    {
        [Required]
        [DataType(DataType.Password)]
        [Display(Name = @"当前密码")]
        public string OldPassword { get; set; }

        [Required]
        [StringLength(500, ErrorMessage = @"{0}长度必须介于{2}-{1}之间", MinimumLength = 1)]
        [DataType(DataType.Password)]
        [Display(Name = @"新密码")]
        public string NewPassword { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = @"确认新密码")]
        [Compare("NewPassword", ErrorMessage = @"与当前密码不匹配")]
        public string ConfirmPassword { get; set; }
    }
}
